#include "dbexception.h"

DBException::DBException(std::string errMsg, int errNb) : m_message(errMsg), m_errNb(errNb)
{

}

DBException::~DBException() throw()
{

}

const char* DBException::what() const throw()
{
    char errMsg[255];
    sprintf(errMsg, "%s Error %d", m_message.c_str(), m_errNb);
    std::string message = errMsg;
    return message.c_str();
}
